package com.solidtrust.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import com.solidtrust.entity.AccessItem;


public interface AccessRepository extends CrudRepository<AccessItem, Integer>{
	
	Page<AccessItem> findByUsernameAndServiceAndStatus(Pageable page, String username, Integer service, Integer status);
	Page<AccessItem> findByUsernameAndServiceAndMonthAndStatus(Pageable page, String username, Integer service, String month, Integer status);
}
